//
// Created by fyt79 on 2019/6/9.
//

#ifndef SIGNAL_SOURCE_THREAD_H
#define SIGNAL_SOURCE_THREAD_H

#include <pthread.h>
#include "psd.h"

static struct sched_param sched_cache[OS_MAX_CORES*MACH_THREADS];
static pthread_attr_t attrs_cache[OS_MAX_CORES*MACH_THREADS];
static pthread_t thread_cache[OS_MAX_CORES*MACH_THREADS];

pthread_t* start_thread(unsigned int core_id, unsigned int tpu_id, size_t stack_size, void* stack_address, void* (*f)(void*), void* arg);

#endif //SIGNAL_SOURCE_THREAD_H
